package com.meadin.agent.test;

//订单内容
class OrderContext {
	OrderState state = null;

	// 新建订单设为已预定状态
	OrderContext() {
		this.state = new OrderedState();
	}

	void setState(OrderState state) {
		this.state = state;
	}

	public void confirm() {
		state.confirm(this);
	}

	public void modify() {
		state.modify(this);
	}

	public void pay() {
		state.pay(this);
	}
}